﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using ApplicationCore.Entities;

namespace Web.ViewModels
{
	public class RoomViewModel
	{
		[Required]
		public int Id { get; set; }
		[Required]
		public string Name { get; set; }


		public string RoomNo { get; set; }

		public string Note1 { get; set; }
		public string Note2 { get; set; }
		public string Note3 { get; set; }
		public string Logo { get; set; }
		public string Remarks { get; set; }
		public int GuestTimeOut { get; set; }

		

		public List<ChatMsgViewModel> ChatMsgs { get; set; } = new List<ChatMsgViewModel>();


		public RoomViewModel()
		{

		}
		public RoomViewModel(Room room) : this()
		{
			if (room != null)
			{
				Id = room.Id;
				Name = room.Name;
				RoomNo = room.RoomNo;
				this.Note1 = room.Note1;
				this.Note2 = room.Note2;
				this.Note3 = room.Note3;
				this.Logo = room.Logo;
				this.GuestTimeOut = room.GuestTimeOut;
				Remarks = room.Remarks;
				


			}
		}
	}
}
